//
//  custompaopaoview.m
//  xhtios1.0
//
//  Created by hlt on 15/5/26.
//  Copyright (c) 2015年 hlt. All rights reserved.
//

#import "custompaopaoview.h"
#import "AFNetworking.h"
#import "UIImageView+WebCache.h"
@implementation custompaopaoview

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(void)creat
{
    self.layer.cornerRadius=10;
    self.backgroundColor=[UIColor whiteColor];
    //设置商铺logo图片
    _shoplogo=[[UIImageView alloc] initWithFrame:CGRectMake(10, 5, 100, 70)];
    UIImage *image = [[UIImage alloc] init] ;
    image = [UIImage imageNamed:@"xht_Logo.png"];
    NSURL *url=[NSURL URLWithString: _logourl];
    [_shoplogo setImageWithURL:url placeholderImage:image];
    [self addSubview:_shoplogo];
    //设置商铺名
    _shopname=[[UILabel alloc]initWithFrame:CGRectMake(115, 10, 120, 30)];
    _shopname.font= [UIFont fontWithName:@"Helvetica" size:10];
    _shopname.text=_shopnamestr;
    [self addSubview:_shopname];
    
    UILabel *tel=[[UILabel alloc]initWithFrame:CGRectMake(115, 45, 120, 30)];
    tel.text= [NSString stringWithFormat:@"电话： %@",_shoptelstr] ;
    tel.font= [UIFont fontWithName:@"Helvetica" size:10];
    [self addSubview:tel];
    
    
     UIImageView *rightimg=[[UIImageView alloc] initWithFrame:CGRectMake(227, 25, 13, 30)];
     rightimg.image=[UIImage imageNamed:@"right.jpg"];
    [self addSubview:rightimg];
    
    
    
}





@end
